docs: Add separate toml files for gdk backends
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Feb 2021 15:38:39 +0000 (10:38 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:31 +0000 (16:37 +0000)
Reusing the same one duplicates the standalone
docs, which doesn't quite seem right.

docs/reference/gdk/gdk4-wayland.toml.in [new file with mode: 0644]
docs/reference/gdk/gdk4-x11.toml.in [new file with mode: 0644]
docs/reference/gdk/meson.build

diff --git a/docs/reference/gdk/gdk4-wayland.toml.in b/docs/reference/gdk/gdk4-wayland.toml.in
new file mode 100644 (file)
index 0000000..ba47b9d
--- /dev/null
@@ -0,0 +1,23 @@
+[library]
+version = "@version@"
+browse_url = "https://gitlab.gnome.org/GNOME/gtk/"
+repository_url = "https://gitlab.gnome.org/GNOME/gtk.git"
+website_url = "https://www.gtk.org"
+authors = "GTK Development Team"
+logo_url = "gtk-logo.svg"
+license = "GPL-2.1-or-later"
+description = "The GTK toolkit"
+dependencies = [ "GObject-2.0" ]
+devhelp = true
+
+  [dependencies."GObject-2.0"]
+  name = "GObject"
+  description = "The base type system library"
+  docs_url = "https://developer.gnome.org/gobject/stable"
+
+[theme]
+name = "basic"
+show_index_summary = true
+
+[source-location]
+base_url = "https://gitlab.gnome.org/GNOME/gtk/-/blob/master/"
diff --git a/docs/reference/gdk/gdk4-x11.toml.in b/docs/reference/gdk/gdk4-x11.toml.in
new file mode 100644 (file)
index 0000000..ba47b9d
--- /dev/null
@@ -0,0 +1,23 @@
+[library]
+version = "@version@"
+browse_url = "https://gitlab.gnome.org/GNOME/gtk/"
+repository_url = "https://gitlab.gnome.org/GNOME/gtk.git"
+website_url = "https://www.gtk.org"
+authors = "GTK Development Team"
+logo_url = "gtk-logo.svg"
+license = "GPL-2.1-or-later"
+description = "The GTK toolkit"
+dependencies = [ "GObject-2.0" ]
+devhelp = true
+
+  [dependencies."GObject-2.0"]
+  name = "GObject"
+  description = "The base type system library"
+  docs_url = "https://developer.gnome.org/gobject/stable"
+
+[theme]
+name = "basic"
+show_index_summary = true
+
+[source-location]
+base_url = "https://gitlab.gnome.org/GNOME/gtk/-/blob/master/"
index d6163ae029748c83b9474c3a71f2c9a8393f9893..66b0d150fc0a25e0e0ab829f9335d8135d265890 100644 (file)
@@ -2,6 +2,8 @@ expand_content_md_files = [
 ]
 
 gdk4_toml = configure_file(input: 'gdk4.toml.in', output: 'gdk4.toml', configuration: toml_conf)
+gdk4x11_toml = configure_file(input: 'gdk4-x11.toml.in', output: 'gdk4-x11.toml', configuration: toml_conf)
+gdk4wayland_toml = configure_file(input: 'gdk4-wayland.toml.in', output: 'gdk4-wayland.toml', configuration: toml_conf)
 
 if get_option('gtk_doc')
   custom_target('gdk4-doc',
@@ -24,7 +26,7 @@ if get_option('gtk_doc')
 
   if x11_enabled
     custom_target('gdk4-x11-doc',
-      input: [ gdk4_toml, gdk_x11_gir[0] ],
+      input: [ gdk4x11_toml, gdk_x11_gir[0] ],
       output: 'gdk4-x11',
       command: [
         gidocgen,
@@ -38,14 +40,14 @@ if get_option('gtk_doc')
         '@INPUT1@',
       ],
       depends: [ gdk_gir[0] ],
-      depend_files: [ expand_content_md_files ],
+      depend_files: [ ],
       build_by_default: true,
     )
   endif
 
   if wayland_enabled
     custom_target('gdk4-wayland-doc',
-      input: [ gdk4_toml, gdk_wayland_gir[0] ],
+      input: [ gdk4wayland_toml, gdk_wayland_gir[0] ],
       output: 'gdk4-wayland',
       command: [
         gidocgen,
@@ -59,7 +61,7 @@ if get_option('gtk_doc')
         '@INPUT1@',
       ],
       depends: [ gdk_gir[0] ],
-      depend_files: [ expand_content_md_files ],
+      depend_files: [ ],
       build_by_default: true,
     )
   endif